﻿@using ECG.WebUI.CustomHelpers
@model List<ECG.Common.ProductCategoryBannerHomeDto>
@*
    width:392 px
    height: 125 px
*@
@{
    if (Model.Any())
    {
        var count = 0;
        var str = "";
    <ul class="cculadv3 clearfix">
        @foreach (var item in Model)
        {
            count++;
            if (count <= 2)
            {
                if (count == 1)
                {
                    str = "class='cculadv3-padd'";
                }
                else
                {
                    str = "";
                }

            <li @Html.Raw(str)>
                <a href="@item.Url">
                    <img src="@item.ImagePath.ImagePathThumbDefault()" width="@item.Width" height="@item.Height" alt="@item.Description" />
                </a>
            </li>
            }
        }
    </ul>
    }
}
@*<ul class="cculadv3 clearfix">
    <li class="cculadv3-padd">
        <a href="">
            <img src="" width="392" height="125" alt="" />
        </a>
    </li>
    <li>
        <a href="">
            <img src="" width="392" height="125" alt="" />
        </a>
    </li>
</ul>*@
